package mp

import (
	"duoke/model"
	"duoke/service"
	"duoke/utils/response"
	"github.com/gin-gonic/gin"
)

var ShortWatch = new(shortWatchCtl)

type shortWatchCtl struct{}

// PayOrder 订单支付
func (ctl *shortWatchCtl) Save(c *gin.Context) {
}
func (ctl *shortWatchCtl) SaveWatchNumber(c *gin.Context) {
	var req model.ReqId
	if err := c.ShouldBind(&req); err != nil {
		response.Error(c, err.Error(), nil)
		return
	}
	err := service.ShortWatch.SaveWatch(c, &req)
	if err != nil {
		response.Error(c, err.Error(), nil)
		return
	}
	response.Success(c, "success", nil)
}
